<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Jialeo\LaravelSchemaExtend\Schema;

class AddColumnDoorToOpenShopSiteLocations extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('open_shop_site_locations', function (Blueprint $table) {
            $table->unsignedInteger('openDoorType')->after('wallTileUsedOld')->default(0)->comment('开门形式 0-null 1-玻璃门 2-卷帘门 3-其他门');
            $table->unsignedInteger('isChangeDoor')->after('wallTileUsedOld')->default(0)->comment('是否可以改为玻璃门 0-null 1-是 2-否');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('open_shop_site_locations', function (Blueprint $table) {
            $table->dropColumn('openDoorType');
            $table->dropColumn('isChangeDoor');
        });
    }
}
